import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { C1Component } from './c-1/c-1.component';
import { C2Component } from './c-2/c-2.component';
import {RouterModule, Routes} from '@angular/router';
export const cRoutes: Routes = [
  {
    path: '',
    children: [
      {path: 'c-1', component: C1Component},
      {path: 'c-2', component: C2Component}
    ]
  }
];
@NgModule({
  imports: [
    CommonModule,
    RouterModule.forChild(cRoutes)
  ],
  declarations: [C1Component, C2Component]
})
export class CModule { }
